class CreateVideos < ActiveRecord::Migration
  def self.up
    create_table :video do |t|
      t.column :title, :string, :null => false
      t.column :url, :string, :null => false
      t.column :url_image :string, :null => false
      t.column :filename, :string, :null => false
      t.column :hits, :integer, :default => 0, :null => false
    end
  end

  def self.down
    drop_table :video
  end
end
